﻿using System;
using System.ComponentModel.DataAnnotations;

namespace ProjetoComperio.DataLayer.Entities
{
    public class Comment
    {
        public Comment()
        {
            this.CommentID = 0;
            this.SubjectId = 0;
        }


        public virtual int CommentID { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual String Description { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual String UserName { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual String Email { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual DateTime CreatedDate { get; set; }
                
        public virtual int SubjectId { get; set; }
        public virtual Subject Subject { get; set; }
    }
}
